package cn.iocoder.yudao.module.call.dal.mysql.aiqualitytestinglabel;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.call.dal.dataobject.aiqualitytestinglabel.AiQualityTestingLabelDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.call.controller.admin.aiqualitytestinglabel.vo.*;

/**
 * 大模型质检标签 Mapper
 *
 * @author 数创万维
 */
@Mapper
public interface AiQualityTestingLabelMapper extends BaseMapperX<AiQualityTestingLabelDO> {

    default PageResult<AiQualityTestingLabelDO> selectPage(AiQualityTestingLabelPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<AiQualityTestingLabelDO>()
                .eqIfPresent(AiQualityTestingLabelDO::getAiQualityTestingId, reqVO.getAiQualityTestingId())
                .eqIfPresent(AiQualityTestingLabelDO::getContent, reqVO.getContent())
                .eqIfPresent(AiQualityTestingLabelDO::getFollowUpType, reqVO.getFollowUpType())
                .betweenIfPresent(AiQualityTestingLabelDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(AiQualityTestingLabelDO::getId));
    }

}